package ModelLayer;


/**
 * Write a description of class Person here.
 * 
 * @author (Danny Melsen) 
 * @version (06-11-12)
 */
public class Person
{
    // instance variables - replace the example below with your own
    private long id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;
    private static int nextId = 0;

    /**
     * Constructor for objects of class Person
     */
    public Person (String name, String address, String postalCode,
                  String city, String phone)
    {
        nextId++;
        this.id = nextId;
        this.name=name;
        this.address=address;
        this.postalCode=postalCode;
        this.city=city;
        this.phone=phone;
    }
    
    /**
     * Set id of a person
     */
    public void setId(long id)
    {
        this.id=id;
    }
    
    /**
     * get id of a person
     */
    public long getId()
    {
       return id;
    }
    
    /**
     * set name of a person
     */
    public void setName(String name)
    {
        this.name=name;
    }
    
    /**
     * get name of a person
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * set address of a person
     */
    public void setAdress(String adress)
    {
        this.address=adress;
    }
    
    /**
     * get address of a person
     */
    public String getAdress()
    {
        return address;
    }
    
    /**
     * set postalCode of a person
     */
    public void setPostalCode(String postalCode)
    {
        this.postalCode=postalCode;
    }
    
    /**
     * get postalCode of a person
     */
    public String getPostalCode()
    {
        return postalCode;
    }
    
    /**
     * set city of a person
     */
    public void setCity(String city)
    {
        this.city=city;
    }
    
    /**
     * get city of a person
     */
    public String getCity()
    {
        return city;
    }
    
    /**
     * set phone of a person
     */
    public void setPhone(String Phone)
    {
        this.phone=phone;
    }
    
    /**
     * get phone of a person
     */
    public String getPhone()
    {
        return phone;
    }
    
    /**
     * Print information about Person
     */
    public void printInformationPerson()
    {
        System.out.println("id :" + id);
        System.out.println("name :" + name);
        System.out.println("address :" + address);
        System.out.println("postalCode :" + postalCode);
        System.out.println("city :" + city);
        System.out.println("phone :" + phone);
    }
}
